import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'

import VueRouter from 'vue-router'
import routes from './router/routes.js'

import axios from 'axios';
import {post,fetch,patch,put} from './common/js/http'

import Mint from 'mint-ui';
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'

//引入Mint
Vue.use(Mint);
//定义全局变量
Vue.prototype.$post=post;
Vue.prototype.$fetch=fetch;
Vue.prototype.$patch=patch;
Vue.prototype.$put=put;

Vue.use(ElementUI)
Vue.use(VueRouter)


const router = new VueRouter({
  routes
})

new Vue({
  router,
  el: '#app',
  render: h => h(App)
})
